home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
compress
/
xpack164.zip
/
XPODSDMO.BAT
< prev
Wrap
DOS Batch File
|
1996-09-08
|
3KB
|
100 lines
echo off
CLS
echo This is a quick demo of the operation of
echo XPACK OnLine DeCompression System.
echo XPACK compresses files - all sorts of files -
echo to give you more free space on your disk.
echo And it automatically expands these files when accessed,
echo allowing you to use your files just as before.
echo.
PAUSE
CLS
echo Checking out drive free space before proceeding with demo.
COPY %0.BAT EXAMPLE.ODS
IF EXIST XPACK.COM GOTO PROCEED
echo The file XPACK.COM should be on current drive (path) for this demo.
GOTO DEMOEND
:PROCEED
DEL EXAMPLE.OD1
COPY EXAMPLE.ODS EXAMPLE.OD1
IF EXIST EXAMPLE.OD1 GOTO PROCEED1
echo There is not enough free space on current drive,
echo or the disk is write protected.
GOTO DEMOEND
:PROCEED1
DEL EXAMPLE.OD1
echo.
echo O.K. Can proceed with demo.
PAUSE
CLS
XPACK -z
rem exit code 25 means cannot install xpack online decompression system
IF ERRORLEVEL 25 GOTO DEMOEND
echo.
echo XPACK is now RAM resident. This is needed to use
echo compressed data file. To compress a file is simple:
DIR *.ODS
echo.
echo XPACK will compress EXAMPLE.ODS as an example.
PAUSE
XPACK -pd EXAMPLE.ODS
rem IF ERRORLEVEL 1 GOTO DEMOEND
echo.
PAUSE
CLS
echo To use the compressed file is even simpler.
echo If XPACK is RAM resident and active (XPACK -z+),
echo and enough disk space is free to hold the un-compressed file,
echo XPACK automatically expands the file when accessed,
echo allowing it to be used just as before. You could TYPE the
echo file, for instance.
PAUSE
TYPE EXAMPLE.ODS
PAUSE
CLS
echo For backup, copying, etc., XPACK may be turned OFF. This allows
echo a compressed file to be accessed without automatic expansion.
echo Type XPACK -z- to do this and you can then copy or display compressed
echo files, or manipulate them in any other way. For example:
echo.
echo XPACK -z-
XPACK -z-
echo.
echo.
echo COPY EXAMPLE.ODS EXAMPLE.OD1
COPY EXAMPLE.ODS EXAMPLE.OD1
pause
echo.
echo DIR EXAMPLE.OD?
DIR EXAMPLE.OD?
PAUSE
CLS
echo Do not try to use a compressed data file when XPACK is OFF,
echo or before XPACK is loaded by the first XPACK -z command.
echo The file will not then make sense.
echo.
echo.
echo.
PAUSE
CLS
echo Compressed data files may be de-compressed by the XPACK -ud command.
echo eg XPACK -ud EXAMPLE.ODS
echo.
XPACK -ud EXAMPLE.ODS
echo.
echo.
DIR EXAMPLE.ODS
PAUSE
DEL EXAMPLE.ODS
DEL EXAMPLE.OD1
CLS
echo For a quick reference to XPACK commands, just type XPACK.
PAUSE
echo.
XPACK
echo.
:DEMOEND
echo.
echo This concludes the demonstration.
echo.